package com.weibo.blacklist.service.imp;

import java.util.List;

import org.apache.log4j.Logger;

import com.weibo.blacklist.BlackList;
import com.weibo.blacklist.dao.BlackListDao;
import com.weibo.blacklist.dao.imp.BlackListImp;
import com.weibo.blacklist.service.BlackListService;

public class BlackListServiceImp implements BlackListService {
	private static Logger logger = Logger.getLogger(BlackListServiceImp.class);
	private BlackListDao blackListDao = new BlackListImp();

	@Override
	public String addBlack(BlackList blackList) {
		// TODO Auto-generated method stub
		return blackListDao.addBlack(blackList);
	}

	@Override
	public String deleteBlaceList(String bla_id) {
		// TODO Auto-generated method stub
		return blackListDao.deleteBlaceList(bla_id);
	}

	@Override
	public List selectBalckList() {
		// TODO Auto-generated method stub
		return blackListDao.selectBalckList();
	}

	@Override
	public List selectBlackList(int currentPage,String user_id) {
		// TODO Auto-generated method stub
		return blackListDao.selectBlackList(currentPage,user_id);
	}

}
